<?php
	global $_W,$_GPC;
	if($_W['role']){
		$sid = $_GPC['sid']=='1'?'0':'1';
		$id = $_GPC['did'];
		$up = pdo_update('mii_ang_class',array('ishide'=>$sid),array('id'=>$id));
		if($up){
			$code = json_encode(array('status'=>'1','msg'=>'操作成功'));
			exit($code);
		}else{
			$code = json_encode(array('status'=>'2','msg'=>'操作失败'));
			exit($code);
		}
	}else{
		$code = json_encode(array('status'=>'2','msg'=>'没有操作权限'));
		exit($code);
	}



?>